package com.woniuxy.course.service.impl;

import com.woniuxy.commons.entity.CourseTag;
import com.woniuxy.commons.entity.TagRelation;
import com.woniuxy.course.mapper.CourseTagMapper;
import com.woniuxy.course.service.CourseTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author LuoChen
 * @DateTime 2020-08-04 15:57:31
 * @Description
 */
@Service
public class CourseTagServiceImpl implements CourseTagService {

    @Autowired
    private CourseTagMapper courseTagMapper;

    /**
     * 批量增加标签
     * @param courseTags
     * @return: int
     * @author: LuoChen
     * @dateTime: 2020-08-04 15:55:35
     */
    @Override
    public int addCourseTags(List<CourseTag> courseTags) {
        return 0;
    }

    /**
     * 新增中间表
     * @param tagRelations
     * @return: int
     * @author: LuoChen
     * @dateTime: 2020-08-04 15:56:19
     */
    @Override
    public int addRelation(List<TagRelation> tagRelations) {
        return 0;
    }

    /**
     * 查找所有的标签
     * @return: java.util.List<com.woniuxy.commons.entity.CourseTag>
     * @author: LuoChen
     * @dateTime: 2020-08-05 01:24:15
     */
    @Override
    public List<CourseTag> findAllTags() {
        return courseTagMapper.findAllTags();
    }
}
